package com.kedou.sdk.params.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

public class PayChannelPlatCoin implements Parcelable {

    /**
     * 支付渠道类型ID
     */
    @SerializedName("user_id")
    private String userId;

    /**
     * 支付渠道主题
     */
    @SerializedName("username")
    private String userName;

    /**
     * 支付渠道见到描述信息
     */
    @SerializedName("currency")
    private String currency;


    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public PayChannelPlatCoin() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
//        dest.writeInt(this.payType);
        dest.writeString(this.userId);
        dest.writeString(this.userName);
        dest.writeString(this.currency);

    }

    protected PayChannelPlatCoin(Parcel in) {

        this.userId = in.readString();
        this.userName = in.readString();
        this.currency = in.readString();
    }

    public static final Creator<PayChannelPlatCoin> CREATOR = new Creator<PayChannelPlatCoin>() {
        @Override
        public PayChannelPlatCoin createFromParcel(Parcel source) {
            return new PayChannelPlatCoin(source);
        }

        @Override
        public PayChannelPlatCoin[] newArray(int size) {
            return new PayChannelPlatCoin[size];
        }
    };
}
